package com.usian.config;

import com.usian.shop.entity.Member;
import com.usian.shop.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "springcloud-provider")
public interface FeignMember {
    @RequestMapping("/member/login")
    public ResponseResult login(@RequestBody Member member);
    @GetMapping("/member/findAll")
    public Member findAll(@RequestParam("name") String name);
    @PostMapping("/member/update")
    public ResponseResult update(@RequestBody Member member);
}
